#include "main.h"
#include "stdio.h"
#include "test1.h"
#include "test2.h"
#include "test3.h"
#include "test4.h"

void hello(int i) 
{
	printf("11 + %d    %d\n",i,_MSC_VER);
}
class MM
{
public:
	void test(int x)
	{
		printf("M +%d",x);
	}
};
int main(int argc, char *argv[])
{

	hello(11);

	fd::delegate1<void,int> xx  = hello;//();

	MM o;
	MM v = o;
	xx += fd::bind(&MM::test,&o);
	xx += fd::bind(&MM::test,&v);
	xx += fd::bind(&MM::test,&o);
	



	xx(11);
	/*
  boost::bind(&foobar::foo, foobar(), boost::arg<1>());

  test1();
  test2();
  test3();
  test4();

  */
  system("PAUSE");
  return EXIT_SUCCESS;
}
